package test.dao.model.sql_review;

import java.sql.Connection;

public class DatasourceConfig {

        private String name;
        private String url;
        private String username;
        private String password;



        public Connection newConnection(){
            return MysqlUtil.getDatabaseConnection(this);
        }


        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }